#include "head_struct.h"
#include "func.h"

ur peo_data[10] = {{.user_name= "王健", .pass_word = "111"},
                    {.user_name = "王植", .pass_word = "222"},
                    {.user_name = "胡卓", .pass_word = "333"},
                    {.user_name = "张三", .pass_word = "444"},
                    {.user_name = "李四", .pass_word = "555"},
                    {.user_name = "老八", .pass_word = "666"},
                    {.user_name = "前五", .pass_word = "777"},
};

int main(int argc, char const *argv[])
{   int num = 99;
    list1 li;
    list1 * L = &li;
    //初始化
    chu_shi_hua(L);
    // printf("%s,%s,%d \n",peo_data[0].user_name,peo_data->pass_word,L->len);
    //尾插
    for (int i = 0; i < 7; i++)
    {
        cha_ru(L,peo_data[i]);
    }
    // bian_li(L);
    
    // printf("%d",strcmp("qwe","qwe"));
    while (0 != num)
    {
    printf("欢迎来到虚拟系统\tHello Wolrd\n");
    printf("点击1: 登录账号 点击2: 注册账号呢 点击0:退出系统\n");
    scanf("%d",&num);
    if(1 == num)
        deng_lu (L);
        return 0;
    if(2 == num)
    {
        zhu_ce(L);
    }
    }
    
    return 0;
}
